package com.ncloud.workflow.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.workflow.business.TestService;
import com.ncloud.workflow.utils.SpringUtil;

@SuppressWarnings("serial")
public class SendMailNoticBeforTask implements TaskListener {
	
	@Override
	public void notify(DelegateTask delegateTask) {
		TestService testService = SpringUtil.getBean(TestService.class);
//		JSONObject result = testService.getChnl();
		JSONObject json = new JSONObject();
		json.put("chnlId", 1);
		JSONObject result = testService.getChnl();
		System.out.println(result!=null?result.toJSONString():"result返回结果为空");
	}

}
